home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / E.T.O. #4 Installer / SANE Install < prev    next >
Text File  |  1991-05-23  |  2KB  |  52 lines

  1. #    S A N E   I N S T A L L A T I O N   S C R I P T
  2. #
  3. #    Copyright Apple Computer, Inc. 1991 - All rights reserved.
  4. #    
  5. #
  6. #    This script is used to install either the Omega SANE or Omega SANE FPU Inits, version 1.0b5, 
  7. #    from the  E.T.O. #4 distribution compact disk into the System Folder on the destination hard disk. 
  8. #    on the destination hard disk. 
  9. #
  10. #    This script makes use of the following Shell variables:
  11. #
  12. #    {CDVolume}        - the name of the CD Distribution volume
  13. #
  14. #    {SystemFolder}    - the path to the folder containing the currently active System
  15. #
  16. #    {DestVolume}    - the name of the volume from which the Installer was launched
  17. #
  18. #    {SANEOption}    - a flag used to indicate which version of MacsBug to install
  19. #
  20. #    {MachType}        - a flag to determine the current machine type
  21. #
  22. #    {FPUType}        - a flag to determine the FPU type of the current machine
  23. #
  24.  
  25. set SANESource        "{CDVolume}Essentials:OmegaSANE:PQR4:Omega SANE®"
  26.  
  27. set SANEFPUSource    "{CDVolume}Essentials:OmegaSANE:PQR4:Omega SANE® FPU Version"
  28.  
  29.  
  30. ###    First, check for an older version
  31.  
  32. if "`Exists -f "{SystemFolder}Omega SANE®"`"
  33.     if "`Exists -f "{SystemFolder}Omega SANE®.Old"`"
  34.         Delete -y "{SystemFolder}Omega SANE®.Old"
  35.     End
  36.     Rename "{SystemFolder}Omega SANE®" "{SystemFolder}Omega SANE®.Old"
  37. End
  38.  
  39. ###    Next, copy the correct version into the System Folder
  40.  
  41.  
  42. If    "{FPUType}" != "0"            ### if there is an FPU
  43.     If "{MachType}" != "19"        ### Mac LC
  44.         Duplicate -y "{SANEFPUSource}" "{SystemFolder}Omega Sane®"
  45.     End
  46. Else                            ### No FPU Installed
  47.     If "{MachType}" != "19" && "{MachType}" != "18"        ### Mac LC & Mac SI
  48.         Duplicate -y "{SANESource}" "{SystemFolder}Omega Sane®"
  49.     End
  50. End
  51.  
  52.